def max(values):

    _max = values[0]

    for val in values:
        if val > _max:
            _max = val

    return _max